<link rel="stylesheet" type="text/css" href="/bootstrap/css/DT_bootstrap.css"></link>
<script type="text/javascript" charset="utf-8" language="javascript" src="/js/dataTable/DT_bootstrap.js"></script>

<script type="text/javascript" charset="utf-8">
			
			/* Table initialisation */
			$(document).ready(function() {
				$('.dataTable').dataTable( {
					"sDom": "<'row'<'span8'l><'span8'f>r>t<'row'<'span8'i><'span8'p>>",
					"sPaginationType": "bootstrap",
					"oLanguage": {
						"sLengthMenu": "_MENU_ records per page"
					}
				} );
			} );
		</script>
 <?php if($this->mensaje!=''){ 
          echo "<script type='text/javascript'>alert("."'".$this->mensaje."'".");</script>";
         }?>
                
 <script type="text/javascript">
    function mostrarRequisitos()
    {  requisitos=window.open("/requisitos/requisitos.html", "Requisitos", 'width=863,height=736,scrollbars=yes');
       requisitos=testwindow.moveTo(10, 50);
    }
</script>      
                <div class="row" style="margin-left: 10px">
<div class="span16">
    <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered dataTable">
        <thead>
        <tr>
            <td>Fecha</td>
            <td>Dia</td>
            <td>Hora Comienzo</td>
            <td>Hora</td>
            <td>Seleccionar</td>
        </tr>
        </thead>
        <tbody>     
            <?php if(count($this->consultas)): ?>
            <?php foreach($this->consultas as $c):?>
        <tr class="gradeA" >
            <td><?php echo $c->getFecha()?> </td>
            <td><?php echo $c->getDiaSemana()?> </td>
            <td><?php echo $c->getHoraInicio()?> </td>
            <td><?php echo $c->getHora()?> </td>
            <td><button onclick="window.location.href='/consulta/verificarinscripcion/cons/<?php echo $c->getIdConsulta()?>/fec/<?php echo $c->getFecha()?>/hor/<?php echo $c->getHora()?>/dia/<?php echo $c->getDiaSemana()?>'">Seleccionar</button></td>
        </tr>
            <?php endforeach;?>
            
            <?php else: ?>
            <tr>
                <td>No hay registros</td>
            </tr>
            <?php endif;?>
        </tbody> 
    </table>
    
</div>
</div>
